<template>
  我是测试首页
  <div>{{ isCollapse }}</div>
  <el-button type="primary" @click="handleClick">Primary</el-button>
  
</template>
<script lang="ts">
import { SuperPage } from "@/super";
import {useSysStore} from '@/store/modules/sys'
import { State } from "@gowiny/vue-class";
export default class TestIndexPage extends SuperPage{
  @State(useSysStore,"leftMenu.isCollapse")
  isCollapse:boolean=false
  title:string="你好呀"
  handleClick(){
    const sysStore = useSysStore();
    console.log(sysStore)
    axios.get("/api/get").then((res) => {
      console.log(res);
    });
  }
}
</script>

<style scoped>

</style>
